#ifndef HBRECEIVER_H
#define HBRECEIVER_H

#include <QLabel>
#include "log.h"
#include <QTime>

class QUdpSocket;


class HBReceiver : public QLabel
{
  Q_OBJECT

public:
  HBReceiver( QWidget *parent=0 );

private slots:
  QBool dataPending();
  void dataPendingTest();
  QString checadorDeTempo();
  void checadorDeTempoTest();

private:
  QUdpSocket *socket;
  int cont;
  QTimer *timer;
  QTime lastUpdate;
  bool firsthb;
};

#endif // HBRECEIVER_H
